import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      order: 1,
      title: $t('page.activity.title'),
    },
    name: 'Activity',
    path: '/activity',
    children: [
      {
        name: 'ActivityList',
        path: '/activity/index',
        component: () => import('#/views/activity/index.vue'),
        meta: {
          affixTab: true,
          title: $t('page.smartAudit.smartAudit'),
        },
      },
      {
        name: 'Rules',
        path: '/smartAudit/rules',
        component: () => import('#/views/smartAudit/rules/index.vue'),
        meta: {
          affixTab: true,
          title: $t('page.smartAudit.rules'),
        },
      },
    ],
  },
];

export default routes;
